package com.fms.data.messaging;

import java.io.FileInputStream;
import java.util.Properties;

public class EmailOptions extends Properties
{
	/**
	 * 
	 */
	private static final long	serialVersionUID	= 403269658770155312L;

	public EmailOptions()
	{
		this("config/gmail.properties");
	}
	
	public EmailOptions(String fileName)
	{
		try
		{
			FileInputStream in = new FileInputStream(fileName);
			load(in);
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}
	
	public String getName()
	{
		return this.getProperty("options.name");		
	}

}
